<?php

namespace app\service\impl;

use app\repository\SetmealRepository;
use app\service\SetmealService;
use DI\Attribute\Inject;

class SetmealServiceImpl implements SetmealService
{
    #[Inject]
    public SetmealRepository $repository;
    public function listOf(array $setmealPageQueryDTO)
    {
        return $this->repository->listOf($setmealPageQueryDTO);
    }

    public function saveWithDishes(array $params)
    {
        return $this->repository->saveWithDishes($params);
    }

    public function getById($id)
    {
        return $this->repository->getById($id);
    }
    public function startOrStop($status, $id)
    {
        $this->repository->startOrStop($status, $id);
    }
}